//index.js
const app = getApp()

Page({
  data: {
    nodes: [{
        type: 'p',
        text: '欢迎使用zEditor',
        attrs: {
          fontSize: 40,
          color: "#fdd400",
          align: "left"
        }
      },
      {
        type: 'swiper',
        srcs: ["cloud://wedaily-mghdl.7765-wedaily-mghdl-1259397976/wear-o5src4g1r0bcR_TGiojQgrcpy9K0-ac5f38825f5837990139cb244590f9ff-1599616947733-890-.jpg", "cloud://wedaily-mghdl.7765-wedaily-mghdl-1259397976/wear-o5src4g2WKm_XFu7TIaW2y1iy7Rg-8a6c3bf65f5ccf69012b8d16174ec29c-1599917954188-962-.jpg"],
        attrs:{
       
        }
      }

    ]
  },

  onLoad: function () {

  },
  getNodes(e) {
    let nodes = e.detail
    this.setData({
      nodes
    })
  },
  getContent() {
    this.selectComponent('#zEditor').finish()
    console.log(this.data.nodes)
  }



})